import { useState } from 'react'
import logo from './logo.svg'
import './App.css'
import{ Route,Routes,Link}from 'react-router-dom'
import Home from './Home'
import About from './About'

function App() {
 

  return (
    <div className="App">
      <nav>
        <Link to='/'>首页</Link>
        <Link to='/home'>home</Link>
        <Link to='/about'>关于</Link>
      </nav>
      <Routes>
        <Route path='/home' element={<Home/>}/>
        <Route path='/about' element={<About/>}/>

      </Routes>
    </div>
  )
}

export default App
